package state.util.array;

public class ObjectArray {
  public Object[] array = null;
  private int size = 0;
  
  public static ObjectArray create(int len) {
    Object[] value1 = new Object[len];
    return new ObjectArray(value1, len);
  }
  
  public static void arraycopy(ObjectArray src, int srcPos, ObjectArray dest, int destPos, int length1) {
    System.arraycopy(src.array, srcPos, dest.array, destPos, length1);
  }
  
  public ObjectArray(Object[] value1, int length1) {
    array = value1;
    size = length1;
  }
  
  public int len() {
    return size;
  }
  
  public Object get(int i) {
    return array[i];
  }
  
  public void set(int i, Object obj) {
    array[i] = obj;
  }
  
  public void setArray(Object[] value1, int length1) {
    array = value1;
    size = length1;
  }
}
